home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9308 < prev    next >
Encoding:
Text File  |  1996-08-05  |  986 b   |  31 lines

  1. Path: interramp.com!usenet
  2. From: us027214@interramp.com (Rocky Pulley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Color Text?!?!? HELP!!!
  5. Date: Thu, 29 Feb 96 16:32:30 -0400
  6. Organization: PSI Public Usenet Link
  7. Message-ID: <4h569s$plt@usenet5.interramp.com>
  8. NNTP-Posting-Host: ip18.baltimore4.md.interramp.com
  9.  
  10. I purchased a book that had Borland C 1.0, now I bought
  11. Borland C/C++ 3.1. anyway, in the 1.0 version, i could do 
  12. a small program like,
  13. #include <stdio.h>
  14. #include <conio.h>
  15. main()
  16.   textcolor(BLACK);
  17.   textbackground(YELLOW);
  18.   clrscr();
  19.   cprintf("this is in color\n");
  20.   return 0;
  21. }
  22.  
  23. and all would be fine, but when i try it in 3.0, it gives
  24. me error messages that say,"textcolor needs a prototype"
  25. "textbackground needs a prototype" "undefined symbol 'BLack'
  26. undefined symbol 'YELLOW'" "cprintf needs a prototype"...
  27. I just dont understand why it works in 1.0, but not in 3.0
  28. If you can give me any advise I would really appreciate it
  29. please email me at      iban123@aol.com
  30.